package com.netflix.appinfo;

import com.netflix.config.DynamicPropertyFactory;
import com.netflix.util.Archaius1Utils;
import lombok.Data;

@Data
public class Archaius1AmazonInfoConfig implements AmazonInfoConfig {

    private final DynamicPropertyFactory configInstance;
    private final String namespace;

    public Archaius1AmazonInfoConfig(String namespace) {
        this.namespace = namespace.endsWith(".") ? namespace : namespace + ".";
        this.configInstance = Archaius1Utils.initConfig("eureka-client");
    }

    @Override
    public String getNamespace() {
        return null;
    }

    @Override
    public boolean shouldLogAmazonMetadataErrors() {
        return false;
    }

    @Override
    public int getReadTimeout() {
        return 0;
    }

    @Override
    public int getConnectTimeout() {
        return 0;
    }

    @Override
    public int getNumRetries() {
        return 0;
    }

    @Override
    public boolean shouldFailFastOnFirstLoad() {
        return false;
    }

    @Override
    public boolean shouldValidateInstanceId() {
        return false;
    }
}
